//
//  NoteLinesModel.swift
//  poetry
//
//  Created by YL-Hong on 2023/1/5.
//

import Foundation
//import HandyJSON
class NoteLinesModel:NSObject {
   
    var note_count:Int = 0 //该诗词笔记总数
    
    ///全局笔记导致的画线数组
    var gobal_note_lines:[NoteLineItemModel] = []
    ///用户画线数组
    var user_lines:[NoteLineItemModel] = []
    ///用户笔记导致的画线数组，三个数组元素格式都一样
    var user_note_lines:[NoteLineItemModel] = []
}


class NoteLineItemModel: NSObject{
    
    /// 起始坐标
    var s:Int = 0
    
    /// 结束坐标
    var e:Int = 0
    
    /// 线段类型
    var l:Int = 0
    
    var length: Int {
        return e - s
    }
}
